package com.rmb.service.impl;

import com.rmb.client.DataSourceServiceClient;
import com.rmb.entity.TaskPlanInfo;
import com.rmb.mapper.TaskPlanInfoMapper;
import com.rmb.service.TaskPlanInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wan
 * @date 2021/1/8 19:53
 */
@Service
public class TaskPlanInfoServiceImpl implements TaskPlanInfoService {

    @Resource
    TaskPlanInfoMapper taskPlanInfoMapper;

    @Resource
    DataSourceServiceClient sourceServiceClient;
    @Override
    public List<TaskPlanInfo> taskPlanInfoList() {

        return taskPlanInfoMapper.taskPlanInfoList();
    }

    @Override
    public List<String> findAllDataSource() {
        return sourceServiceClient.getAllDataSource();
    }


}
